package com.elite.service;

import com.elite.entity.ShoppingCart;

import java.util.List;

/**
 * Created by Administrator on 2017/2/17.
 */
public interface ShoppingCartService {

    void addShoppingCart(ShoppingCart shoppingCart);

    ShoppingCart selectByByUserIdAndGoodsId(Integer userId, Integer goodsId);

    ShoppingCart selectByPrimaryKey(Integer shoppingcartId);

    void updateByPrimaryKey(ShoppingCart shoppingCart);

    List selectByUserId(Integer userId);

    void deleteShoppingCart(Integer shoppingcartId);

}
